New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@turf/line-intersect

Package Overview
Dependencies
Maintainers
0
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-intersect

turf line-intersect module

7.2.0
latest
Source
npm
Version published
Weekly downloads
1.5M
9.44%
Maintainers
0
Weekly downloads
 
Created

What is @turf/line-intersect?

@turf/line-intersect is a module from the Turf.js library that provides geospatial analysis tools. This specific module is used to find the intersection points between two or more lines. It is useful in various geospatial applications, such as mapping, urban planning, and geographic information systems (GIS).

What are @turf/line-intersect's main functionalities?

Find Intersection Points

This feature allows you to find the intersection points between two lines. In the code sample, two lines are defined, and the `lineIntersect` function is used to find their intersection points.

const turf = require('@turf/turf');

const line1 = turf.lineString([[0, 0], [2, 2]]);
const line2 = turf.lineString([[0, 2], [2, 0]]);

const intersections = turf.lineIntersect(line1, line2);
console.log(intersections);

Other packages similar to @turf/line-intersect

Keywords

turf

FAQs

Package last updated on 29 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts